package top.xia17.plugins.fast.user.model.query;

import top.xia17.plugins.fast.common.database.jpa.query.BaseQuery;
import top.xia17.plugins.fast.common.database.jpa.query.Query;
import lombok.Data;
import lombok.experimental.Accessors;
import top.xia17.plugins.fast.user.dao.entity.Menu;

/**
 * 用户查询条件
 *
 * @author xia17
 * @since 2021/7/21 20:03
 */
@Data
@Accessors(chain = true)
public class MenuQuery implements BaseQuery<Menu> {


    /**
     * 菜单名like
     */
    @Query(type = Query.Type.INNER_LIKE)
    private String title;

    /**
     * 父节点ID
     */
    @Query
    private Long pid;

    /**
     * 菜单类型
     */
    @Query
    private Integer type;

    /**
     * 权限标识like
     */
    @Query(type = Query.Type.INNER_LIKE)
    private Long permission;


}
